import load

all=[]

for i in load.reader:
    x=float(i[load.jing])
    y=float(i[load.wei])
    if load.inRegion(x,y):
        obj=[]
        obj.append(str(x))
        obj.append(str(y))
        obj.append(i[load.licenseNum])
        obj.append(i[load.time])
        obj.append(i[load.isEmpty])
        print(obj)
        all.append(obj)

content=''
for i in all:
    for j in i:
        content+=j+','
    content+='\n'

fobj=open('出租车GPS数据.csv','a')
fobj.write(content)